package homework3;

public class ColaEmployee {
    private String emName;
    private int birthMonth;

    public int getSalary(int month)
    {
        if(birthMonth==month)
        {
           return 100;
        }
        return 0;
    }







    //类ColaEmployee构造器
    public ColaEmployee()
    {

    }
    public ColaEmployee(String emName, int birthMonth) {
        this.emName = emName;
        this.birthMonth = birthMonth;
    }
    //类ColaEmployee的get和set方法
    public String getEmName() {
        return emName;
    }

    public void setEmName(String emName) {
        this.emName = emName;
    }

    public int getBirthMonth() {
        return birthMonth;
    }

    public void setBirthMonth(int birthMonth) {
        this.birthMonth = birthMonth;
    }
}
